Platform Configuration Variables
Platform configuration variables are used to inform you, for example, about the step size set in the Platform Configuration dialog. This information can be used in conditional expressions, for example, to run an assesslet, see Test Assessment - Assesslets. TPT distinguishes between general platform configuration variables, and platform-specific platform variables.
The autocompletion feature (shortcut Ctrl+Space) is available at all places where you can use a platform configuration variable.
General platform configuration variables
Variable name | Format | Description |
---|---|---|
tpt.platformconfigname
|
string | name of the platform configuration |
tpt.stepsize
|
double | step size of the test execution as specified in the platform configuration |
tpt.timeout
|
double | timeout of the test execution as specified in the platform configuration + ${tpt.stepsize} |
Platform-specific configuration variables
C/C++ Platform
Variable name | Format | Description |
---|---|---|
tpt.ccodeplatform.workdir
|
dir | working directory for the test execution |
EXE Platform
Variable name | Format | Description |
---|---|---|
tpt.exeplatform.workdir
|
dir | working directory for the test execution |
FUSION Platform
Variable name | Format | Description |
---|---|---|
tpt.fusionplatform.workdir
|
dir | working directory for the test execution |
MATLAB/Simulink Platform
Variable name | Format | Description |
---|---|---|
tpt.matlab.modelname
|
text | name of the test frame model to be executed |
tpt.matlab.modelname.original
|
text | name of the original model |
tpt.matlab.modelfile
|
file | file name of the test frame model file that is responsible for execution |
tpt.matlab.modelfile.dir
|
dir | directory where the model file (test frame model file) is stored |
tpt.matlab.modelfile.original
|
file | file name of the original model file |
tpt.matlab.modelfile.original.dir
|
dir |
directory where the original model file is stored |
tpt.matlab.version
|
text | logical name of the MATLAB version |
tpt.matlab.rootdir
|
file | directory where MATLAB is installed |
tpt.matlab.restartnow
|
int | this value is 1 if MATLAB will be restarted immediately, otherwise the value is 0 MATLAB will be restarted (value is 1) if and only if the parameter "Restart MATLAB every X tests" is set and if the given number X of tests has been reached |
tpt.matlab.paramstoworkspace
|
text | this variable will be substituted by a sequence of m-statements that set all the test parameters of EXCHANGE type defined in the TPT test case as MATLAB workspace variables in order to use this feature, just add ${tpt.matlab.paramstoworkspace} as a statement into your run test script |